<%@ page import="edu.hawaii.kukui.ActivityTextAttempt" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <g:set var="entityName" value="${message(code: 'activityTextAttempt.label', default: 'ActivityTextAttempt')}"/>
  <title><g:message code="default.edit.label" args="[entityName]"/></title>
</head>
<body>
<div class="body">
  <h1>Verify Activity</h1>
  <g:hasErrors bean="${activityTextAttemptInstance}">
    <div class="errors">
      <g:renderErrors bean="${activityTextAttemptInstance}" as="list"/>
    </div>
  </g:hasErrors>
  <g:form method="post">
    <g:hiddenField name="id" value="${activityTextAttemptInstance?.id}"/>
    <g:hiddenField name="version" value="${activityTextAttemptInstance?.version}"/>
    <g:hiddenField name="validateStatus" value="${activityTextAttemptInstance?.validateStatus}"/>
    <g:hiddenField name="validateComment" value="${activityTextAttemptInstance?.validateComment}"/>
    <g:hiddenField name="selectTimestamp" value="${activityTextAttemptInstance?.selectTimestamp}"/>
    <g:hiddenField name="validateTimestamp" value="${activityTextAttemptInstance?.validateTimestamp}"/>
    <g:hiddenField name="activity.id" value="${activityTextAttemptInstance?.activity.id}"/>
    <g:hiddenField name="kukuiUser.id" value="${activityTextAttemptInstance?.kukuiUser?.id}"/>
    <g:hiddenField name="activityVerificationText.id" value="${activityTextAttemptInstance?.activityVerificationText?.id}"/>
    <g:hiddenField name="dateCreated" value="${activityTextAttemptInstance?.dateCreated}"/>
    <g:hiddenField name="lastUpdated" value="${activityTextAttemptInstance?.lastUpdated}"/>
    <div class="dialog">
      <table>
        <tbody>

        <tr>
          <td valign="top" class="name">
            Activity
          </td>
          <td valign="top" class="name">
            ${activityTextAttemptInstance.activity}
          </td>

        </tr>
        <tr>
          <td valign="top" class="name">
            Kukui Nuts:
          </td>
          <td valign="top" class="name">
            <label for="kukuiNuts">${activityTextAttemptInstance.activity.kukuiNuts}</label>
          </td>

        </tr>
        <tr>
          <td valign="top" class="name">
            <label for="activityVerificationText">Verification Question</label>
          </td>
          <td valign="top" class="name">
            <label for="activityVerificationText">${activityTextAttemptInstance.activityVerificationText}</label>
          </td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="verificationText"><g:message code="activityTextAttempt.verificationText.label" default="Verification Text"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'verificationText', 'errors')}">
            <g:textArea name="verificationText" cols="40" rows="5" value="${activityTextAttemptInstance?.verificationText}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="noteToAdmin"><g:message code="activityTextAttempt.noteToAdmin.label" default="Note To Admin"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'noteToAdmin', 'errors')}">
            <g:textArea name="noteToAdmin" cols="40" rows="5" value="${activityTextAttemptInstance?.noteToAdmin}"/>
          </td>
        </tr>

        </tbody>
      </table>
    </div>
    <div class="buttons">
      <span class="button"><g:actionSubmit class="save" action="activityTextUpdate" value="Submit"/></span>
      <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"/></span>
    </div>
  </g:form>
</div>
</body>
</html>
